package cn.sms.basic.mapper;

import cn.sms.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    //添加
    void save(T t);
    //修改
    void update(T t);
    //删除
    void delete(Long id);
    //根据id查询
    T loadById(Long id);
    //查询全部
    List<T> loadAll();
    //查询条数并进行高级查询
    Long queryCount(BaseQuery query);
    //查询所有并进行高级查询
    List<T> query(BaseQuery query);

    void batchRemove(List<Long> ids);
}
